#ifndef __NETWORKING_H
#define __NETWORKING_H

#include <netinet/in.h>

extern int iUDPSendingFD;
extern int iSelfServerPort;
extern int iFirstPortNumber;
extern int iMaxPlayers;

void createUDPSendingSocket();
void* UDPServerThread(void* vptrPort);
void doBroadcastMessage(void *vptrBuffer, int iBufferLength);
void broadcastMessage(void* vptrBuffer, int iBufferLength);
void processMessage(char *sMessage, int iMessageLength, struct sockaddr_in objRemoteAddress);

#endif
